package com.xsedge.xsedge.dao;

import com.xsedge.xsedge.entity.Container;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface ContainersRepository extends JpaRepository<Container,Integer> {

	@Query(value = "SELECT count(*) FROM containerlog WHERE node_ip = ?",nativeQuery = true)
	Object countByNodeIp(String node_ip);
}
